package com.powernode.ssm.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.powernode.ssm.pojo.vo.*;
import com.powernode.ssm.pojo.po.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;

@Transactional
@DS("mysql")
@Repository
public interface RoleInfoDao extends BaseMapper<RoleInfoPo> {

     Page<RoleInfoPo> queryRoleInfo(Page<?> page, @Param("item") QueryRoleInfoVo vo);

     int countRoleInfo(@Param("id") String id);

     RoleInfoPo selectOneRoleInfo(@Param("appcode") String appcode,@Param("roleId") String roleId);

}
